package com.ty.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@Data
@Accessors(chain = true)
@TableName("item_cat")
public class ItemCat extends BasePojo{
    /*菜单列表*/
    @TableId(type = IdType.AUTO)
    private Integer id; //ID序号
    private Integer parentId; //父级ID
    private String name; //名称
    private Integer level; //层级目录
    private String lcon; //图标
    private String permission; //权限标识
    private String routerName; //路由名称
    private String routerIp; //路由地址
    private String routerSubUnit; //路由组件
    private Integer routerCache; //路由缓存
    private Integer sort; //显示排序
    private String type; //类型
    private Integer isLook;  //可见性 0不可见 1为可见
    private Integer state;  //状态 0表示停用 1表示在线
    @TableField(exist = false) //不是表中字段,需要添加注解
    private List<ItemCat> children; //存放下一级菜单
}
